package com.dun.re.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dun.re.dao.ExpenditureDAO;
import com.dun.re.vo.Expenditure;

@Service
public class ExpenditureServiceImpl implements ExpenditureService {
	@Autowired
	private ExpenditureDAO expenditureDAO;

	public int save(Expenditure expenditure) {
		return expenditureDAO.save(expenditure);
	}

	public List<Expenditure> getExpenditures() {
		return expenditureDAO.getExpenditures();
	}

	public List<Expenditure> getExpenditures(String loggedInUser) {
		return expenditureDAO.getExpenditures(loggedInUser);
	}

}
